﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using System.Xml.Linq;

namespace Mrsoft
{
    class Program
    {
        private static MuYue.Plugin.PluginManager manager;

        /// <summary>
        /// 小懒虫的实际入口函数
        /// </summary>
        [STAThread]
        internal static void Main() {
           Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            manager = MuYue.Plugin.PluginManager.Create();
            manager.SetAddinsPath("addins");
            manager.StartService();

            run("F3F54BC2-D6D1-4A85-B943-16287ECEA64C");   //执行更新组件的运行
            run("CAAAF3AB-DD2C-4575-A076-76B99E44F52C");   //执行程序主题

        }

        private static void run(string guid) {
            var addin = manager.GetPluginByGUID<IMrsoft>(guid);
            if (addin != null)
                addin.Run();
        }

    
    }
}
